<?php


namespace app\hotel\validate;


use think\Validate;

class ReservationValidate extends Validate
{
    protected $rule = [
        'room_id|房间' => 'require',
        'start_time|起始时间' => 'require|date',
        'end_time|结束时间' => 'require|date',
        'deposit|押金' => 'require',
        'price|价格' => 'require'
    ];

    protected $scene = [
        'Reservation' => ['room_id' , 'start_time' , 'end_time' , 'deposit' , 'price']
    ];
}